<?php

/**
 * This file is part of the Pagizer package.
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 *
 * @copyright   Copyright (c) 2010 Advisa (http://www.advisa.fr)
 * @author      Pagizer Core Team <team@pagizer.org>
 * @package     Pagizer
 * @subpackage  backoffice
 */

class m_backoffice_actions_AjaxSortItemsAction extends m_backoffice_extends_Action
{
	public function execute()
	{	
		$docId = $this->getRequestParameter("docId");
		$docLang = $this->getRequestParameter("docLang");		
		$rows = $this->getRequestParameter("row");
				
		f_relation_ManagerNew::getInstance(null)->orderRelations($docId, $docLang, $rows);

        f_template_Template::getInstance()->clear_all_cache();

		return null;
	}	
	
	public function errorHandler()
	{
		return null;
	}
}